package com.lighting.common.feign.provider.api;

import com.lighting.common.core.vo.Result;
import com.lighting.common.feign.provider.dto.UserDto;
import com.lighting.common.feign.provider.vo.UserVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

public interface ProviderApi {

    /**
     * 接口定义
     * Provider 服务提供者对应的 REST 接口
     *
     * @return
     */
    @GetMapping("/test")
    Result<String> test(@RequestParam("msg") String msg);

    @PostMapping("/getUser")
    Result<UserVo> getUser(@RequestBody UserDto dto);
}